package self.hoy.demo.cloud.service;

import org.springframework.stereotype.Component;

/**
 * @author 三共小不
 * @date 2020/6/5
 */
@Component
public class PaymentHystrixFallBackService implements PaymentHystrixService {
    @Override
    public String paymentOk(Integer id) {
        return "fall back service in consumer, paymentOk, id : " + id;
    }

    @Override
    public String timeout(Integer id) {
        return "fall back service in consumer, timeout, id : " + id;
    }
}
